import request from '@/utils/request'

export function queryAuthRoleAll(data) {
  return request({
    url: '/resource/queryAuthRoleAll',
    method: 'post',
    data
  })
}

export function updateAuthRole(data) {
  return request({
    url: '/resource/updateAuthRole',
    method: 'post',
    data
  })
}

export function queryAllAuthorityMenu(data) {
  return request({
    url: '/resource/queryAllAuthorityMenu',
    method: 'post',
    data
  })
}

export function getAuthRoleById(data) {
  return request({
    url: '/resource/getAuthRoleById',
    method: 'post',
    data
  })
}

export function updateAuthRoleOfResource(data) {
  return request({
    url: '/resource/updateAuthRoleOfResource',
    method: 'post',
    data
  })
}
export function addAuthRole(data) {
  return request({
    url: '/resource/addAuthRole',
    method: 'post',
    data
  })
}
